package com.shop.shoporder.service;

import com.shop.shoporder.entity.order.OrderExport;
import com.shop.shoporder.entity.order.RemoveUserAndAddress;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.OutputStream;
import java.util.List;
import java.util.Set;

public interface ExportService {
     List<RemoveUserAndAddress> removeDuplicate(List<RemoveUserAndAddress> list);
    void setResponseHeader(HttpServletResponse response, String fileName);
    OrderExport orderGroup(OrderExport orderExport);
    List<OrderExport> assOrderData(List<OrderExport> list2,String name);
    List<OrderExport> assOrderData(List<OrderExport> list2);
//    List<OrderExport> assOrderDataName(List<OrderExport> list2,String name);
    void toZip(List<File> srcFiles , OutputStream out);
    String exportExcel (HttpServletRequest request, HttpServletResponse response,Integer aid);
    void exportExcel ();
    Set dealOrderNo (String ss, Set<String> nos);
    void doExport(String path,HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException;
    String readExcel(MultipartFile file, HttpServletRequest request, HttpServletResponse response);
}
